﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Customer_Edit.aspx.cs"
    Inherits="JKF.Web.Customer.Customer_Edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <%= RegScript("~/js/jquery.1.5.js")%>
    <%=RegScript("~/js/Common.js")%>
    <%=RegScript("~/js/jquery.json.js")%>
    <%=RegScript("~/js/jquery.nhis.js")%>
    <%=RegScript("~/js/jquery.rchis.js")%>
    <%=RegScript("~/js/jquery.validate.js")%>
    <%=RegScript("~/js/DatePicker/WdatePicker.js")%>
    <%=RegStyle("~/js/suggest/jquery.suggest.css")%>
    <%=RegStyle("~/App_Themes/Theme2/Include.css")%>
    <script type="text/javascript">
        var module = "<%=module%>";
        var customerKey = "<%=customerKey%>";
        $(function () {
            $(".tabs").find("li").click(function () {
                $(".tabs").find("li").removeClass("selectTag");
                $(this).addClass("selectTag");
                $("iframe").css("display", "none");
                $("#" + $(this).attr("md")).css("display", "");
            });
            if (module != "") {
                switch (module.toLowerCase()) {
                    case "edit":
                        $(".tabs").find("li[md='edit']").click();
                        break;
                    case "changeshop":
                        $(".tabs").find("li[md='changeShop']").click();
                        break;
                    case "changecard":
                        $(".tabs").find("li[md='ChangeCard']").click();
                        break;
                }
            }
        });
    </script>
    <style type="text/css">
        body { height: auto; }
    </style>
</head>
<body style="height: auto;">
    <form id="form1" runat="server">
        <div>
            <ul class="tabs" id="tags">
                <li class="selectTag" md="edit"><a>编辑顾客</a></li>
                <li md="changeShop"><a>更换店面</a></li>
                <li md="ChangeCard"><a>换卡</a></li>
            </ul>
        </div>
        <div id="tagContent" class="moduleContainer" style="overflow: hidden;">
            <iframe id="edit" src="Customer_Add.aspx?customerKey=<%=customerKey%>" style="width: 100%; height: 455px; margin: 0px;"
                scrolling="auto" frameborder="0"></iframe>
            <iframe id="changeShop" src="EditCustomer/Change_Shop.aspx?customerKey=<%=customerKey%>"
                style="width: 100%; height: 455px; margin: 0px; display: none;" scrolling="auto"
                frameborder="0"></iframe>
            <iframe id="ChangeCard" src="EditCustomer/Swing_Card.aspx?customerKey=<%=customerKey%>"
                style="width: 100%; height: 455px; margin: 0px; display: none;" scrolling="auto"
                frameborder="0"></iframe>
        </div>
    </form>
</body>
</html>
